#pragma once

#include "Types.h"

namespace Vortex { namespace Wrapper { namespace Direct3D {

	public ref struct SurfaceDesc {
		D3DFormat							Format;
		D3DResourceType						Type;
		D3DUsage							Usage;
		D3DPool								Pool;
		D3DMultisampleType					MultiSampleType;
		DWORD								MultiSampleQuality;
		UINT								Width;
		UINT								Height;

		SurfaceDesc(D3DSURFACE_DESC* pDesc) {
			Format = (D3DFormat)pDesc->Format;
			Type = (D3DResourceType)pDesc->Type;
			Usage = (D3DUsage)pDesc->Usage;
			Pool = (D3DPool)pDesc->Pool;
			MultiSampleType = (D3DMultisampleType)pDesc->MultiSampleType;
			MultiSampleQuality = pDesc->MultiSampleQuality;
			Width = pDesc->Width;
			Height = pDesc->Height;
		}
	};

} } }